<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <!-- basic styles -->
        <link href="../../assets/js/plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link type="text/css" rel="stylesheet" href="../../assets/js/plugin/jquery-ui/css/jquery-ui.css" />
        <!--<link href="../../assets/js/plugin/datepicker/css/jquery-datepicker.css" rel="stylesheet" media="screen" />-->
        <!--<link href="../../assets/js/plugin/check/check.css" rel="stylesheet" media="screen" />-->
        <link rel="stylesheet" href="../../assets/css/ace.min.css" />
        <!--<link rel="stylesheet" type="text/css" media="all" href="../../assets/js/date-time/daterangepicker-bs3.css"/>-->
        <link rel="stylesheet" href = "../../assets/js/plugin/laydate/need/laydate.css" />
        <style>
            .controls span.help-inline {
                font-size: 12px;
                color: #999
            }
            .modal-body{max-height: 200px;}
            .form-horizontal .row-fluid .left{
                float: left;
                width: 50%;
                margin: 0px;
                padding: 0px;
            }
            .header{padding-left:20px; margin-top: 20px;}
            .row-fluid{border-bottom: 1px solid #d5e3ef;margin-bottom: 10px}
        </style>

    </head>

    <body>
        <div class="main-container">
            <h4 style="" class='header smaller lighter blue'>访问指定应用的用户统计策略添加</h4>
            <form class="form-horizontal">
                <div class="row-fluid">
                    <div class="left">
                        <div class="control-group">
                            <label class="control-label" for="policy_desc">策略名称:</label>
                            <div class="controls">
                                <input class="policy_desc" name="policy_desc" type="text" id="policy_desc" placeholder="" required>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="MAppType">应用类型:</label>
                            <div class="controls">
                                <select class="MAppType" id="MAppType">
                                    <option value="0">未识别应用</option>
                                    <option value="1">Web 视频类</option>
                                    <option value="2">其它 Web 类</option>
                                    <option value="3">P2PStream</option>
                                    <option value="4">P2PDownload</option>
                                    <option value="5">VideoStream</option>
                                    <option value="6">Download</option>
                                    <option value="7">Email </option>
                                    <option value="8">IM</option>
                                    <option value="9">Game</option>
                                    <option value="10">VoIP </option>
                                    <option value="11">电信自营</option>
                                    <option value="12">其它</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="MAppID">应用编号:</label>
                            <div class="controls">
                                <input class="MAppID number" name="MAppID" type="text" id="MAppID" placeholder="" required>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="MAppName">应用名称:</label>
                            <div class="controls">
                                <input class="MAppName" name="MAppName" type="text" id="MAppName" placeholder="">
                            </div>
                        </div>
                    </div>
                    <div class="left">
                        <div class="control-group">
                            <label class="control-label" for="M_GroupNo">待统计的用户类型:</label>
                            <div class="controls">
                                <select class="UserType" id="UserType">
                                    <option value="0">所有用户</option>
                                    <option value="1">账号用户</option>
                                    <option value="2">静态IP地址用户</option>
                                    <option value="3">组用户</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="M_StartTime">数据统计起始时间:</label>
                            <div class="controls">
                                <input class="M_StartTime time" name="M_StartTime" type="text" id="M_StartTime" placeholder="" required>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="M_EndTime">数据终止时间:</label>
                            <div class="controls">
                                <input class="M_EndTime time" name="M_EndTime" type="text" id="M_EndTime" placeholder="" required>
                            </div>
                        </div>
                        
                    </div>
                </div>
                <div class=" row-fluid">
                    <div class="control-group" style=" margin-left: -200px;">
                        <div class="controls">
                            <a href="javascript:void(0)" class="btn btn-primary" onclick="edit()">&nbsp;保&nbsp;存&nbsp;</a>
                            <a href="javascript:void(0)" class="btn btn-danger" onclick="previous()">&nbsp;取&nbsp;消&nbsp;</a>
                        </div>
                    </div>
                </div>
            </form>
        </div>

        <script src="../../assets/js/jquery.js"></script>
        <script src="../../assets/js/plugin/bootstrap/js/bootstrap.min.js"></script>
        <script type='text/javascript' src="../../assets/js/plugin/jquery-ui/jquery-ui.js"></script>
        <!--<script src="../../assets/js/plugin/datepicker/js/jquery-datepicker.js"></script>
        <script src="../../assets/js/date-time/moment.js"></script>
        <script src="../../assets/js/date-time/daterangepicker.js"></script>-->
        <script src="../../assets/js/plugin/laydate/laydate.js"></script>
        <script src="../../assets/js/plugin/menu/menu.js"></script>
        <script src="../../assets/js/jquery.validate.js"></script>
        <script src="../../assets/js/jquery.validate-util.js"></script>
        <!--<script src="../../assets/js/logic/overlayer.js"></script>-->
        <script src="../../assets/js/Base64.js"></script>
        <script src="logic.js"></script>
        <script>
            var id = getQueryString("id");
            $(function(){
                $.ajax({
                    method: "POST",
                    async: false,
                    dataType: "json",
                    url: "../../action/policy/get.do",
                    data: {type: type, messageNo: id, instance: DepotName},
                    success: showData
                });
            });
        </script>
    </body>
</html>
